class Animal:
    def cat(self, varirt, age):  # 品种，年龄
        self.varirt = varirt
        self.age = age

    # 获取属性
    def getvar(self):
        return self.varirt

    def getage(self):
        print(self.age)

    # 删除属性
    def getdel(self):
        del self.varirt
        del self.age



cat1 = Animal()
cat1.cat("橘猫", "3岁")
# print(cat1.varirt, cat1.age)
print(cat1.getvar())
cat1.getage()
cat1.getdel()
print(cat1.varirt,cat1.age)


